<script setup>
import { reactive } from 'vue';
const state = reactive({
  msg: '测试数据'
});
</script>

<template>
  <h1>{{ state.msg }}</h1>
  <button @click="state.msg='hello'">点击修改</button>
</template>

<style>
</style>
